<?php
namespace Home\Model;
use Think\Model\ViewModel;
class CouponDataViewModel extends ViewModel{
	protected $connection = 'USER';
	protected $tablePrefix = '';
    public $viewFields = array(
	'coupondata' => array('id'=>'coupondataid','_table'=>"user_coupon_data",'_as'=>'coupondata'),
	'coupon'     => array('id'=>'couponid','money','conditions','title','starttime','endtime','_table'=>"user_coupon",'_as'=>'coupon','_on'=>'coupondata.couponid=coupon.id'),
   );
}
?>